package com.qihang.core.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qihang.common.PagerModel;
import com.qihang.core.dao.MenuDao;
import com.qihang.core.domain.MenuEntity;
import com.qihang.core.service.MenuService;

@Service("menuService")
public class MenuServiceImpl implements MenuService {

	@Resource(name = "menuDao")
	private MenuDao menuDao;

	@Override
	public boolean addMenu(MenuEntity paramMenu) {
		return menuDao.addMenu(paramMenu);
	}

	@Override
	public void updateMenu(MenuEntity paramMenu) {
		menuDao.updateMenu(paramMenu);
	}

	@Override
	public void delMenu(MenuEntity paramMenu) {
		menuDao.delMenu(paramMenu);
	}

	@Override
	public MenuEntity getMenu(MenuEntity paramMenu) {
		return menuDao.getMenu(paramMenu);
	}

	@Override
	public PagerModel getMenuList(MenuEntity paramMenu) {
		return menuDao.getMenuList(paramMenu);
	}

}
